package com.stm.bi.enums;


import com.stm.framework.annotation.EnumValue;

/**
 * @ClassDesc 参数类型
 **/
@EnumValue
public enum ParamType {
    SEASON("season","季节"),
    OUT_SEASON( "B","过应季"),
    RETURN_REASON("returnReason","退货理由"),
    INDEX("index","正特价指标"),
    IS_MAINLY("isMainly","是否主推"),
    LEVEL("level", "款式等级"),
    PARENT_CODE("parentCode", "上级编码"),
    CODE("code", "编码"),
    BAND("band", "波段");
    /**
     * 字段类型值
     */
    @EnumValue
    private final String value;
    /**
     * 字段类型描述
     */
    
    private final String desc;

    ParamType(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public static ParamType getDateType(String value) {
        for (ParamType ut : ParamType.values()) {
            if (ut.getValue().equals(value)) {
                return ut;
            }
        }
        return null;
    }

    public String getValue() {
        return this.value;
    }

    public String getDesc() {
        return desc;
    }
}
